package service;

import entity.Admin;

import java.util.List;

public interface AdminService {
    public boolean addAdmin(Admin admin);

    public boolean updAdmin(Admin admin);

    public boolean delAdmin(Integer id);

    public List<Admin> findAllAdmin();

    public Admin findAdminById(Integer id);

    public boolean isExistById(Integer id);

    //登录的方法
    public Admin login(String username,String password);
}
